An implementation of the BLAKE2 hash functions.
Based on the work of Cesar Barros.
Usage
An example of using Blake2b
is:
use ;
// create a Blake2b object
let mut hasher = default;
// write input message
hasher.input;
// read hash digest and consume hasher
let output = hasher.result;
println!;
Same for Blake2s
:
use ;
let mut hasher = default;
hasher.input;
let output = hasher.result;
println!;